# Encoding: UTF-8
class UserMailer < ActiveRecord::Base
  
  def reminder(user)
    @subject = 'Su información de login para Expression'
    @body= {}
    # Give body access to the user information.
    @body["user"] = user
    @recipient = user.email
    @from = 'Expression <do-not-reply@expression.com>'
  end

  def message(mail)
    subject mail[:message].subject
    from 'Expression <do-not-reply@expression.com>'
    recipients mail[:recipient].email
    body mail
  end
end
